Vá em data/actions/scripts, crie um arquivo chamado questday.lua e adicione dentro:
function onUse(cid, item, frompos, item2, topos)
if getGlobalStorageValue(18209) < 1 then
return doPlayerSendCancel(cid, "You are exhausted, wait at 00:00:00hrs.") and true
end
doPlayerAddItem(cid, 8110, 1)
setGlobalStorageValue(18209, 1)
doPlayerSendTextMessage(cid, 20, "[Congratulations] You has been earned a "..getItemNameById(8110)..".")
return true
end
Em actions.xml adicione a tag:
<action uniqueid="18199" event="script" value="questday.lua"/>
Agora vá em data/globalevents/scripts, crie um arquivo chamado questday.lua e adicione dentro:
function onTime()
setGlobalStorageValue(18209, -1)
return true
end
Em globalevents.xml adicione essa tag:
<globalevent name="questDay" time="00:00" event="script" value="questday.lua"/>
Reinicie o servidor e boa sorte.






info
Grupo: Artesão
Registrado: 28/09/08
Posts: 110
Reputação: +38
Gênero: Masculino
Char no Tibia: ...
Versão: 8.60
TFS: 0.4
Bem, eu gostaria de uma Quest em que o player possa fazer apenas 1x por dia..
A quest reseta às 00:00, ai o player poderá faze-la novamente!
o player recebe um item ID: 8110 (quantidade = 1)